
package org.crazyoss.infrastructure.persistence.dao;

public interface ShardingSupport {

    public long getNumberOfVirtualShards();

    public int getNumberOfPhysicalShards();

    public long computeVirtualShard(Object entityTypeInstance);

    public int computePhysicalShard(Object entityTypeInstance, int virtualShard);

    public int computePhysicalShard(Object entityTypeInstance);

}
